#define dic_get_select(params)

#set(dicTypeCode="")
#set(dicInfoValue="")
#set(nullValueName="")
#set(attributes="")

#for(param:params)
	#if(param.key=="dicTypeCode")
		#set(dicTypeCode=param.value)
	#elseif(param.key=="dicInfoValue")
		#set(dicInfoValue=param.value)
	#elseif(param.key=="nullValueName")
		#set(nullValueName=param.value)
	#else
		#set(attributes=attributes+" "+param.key+"="+"\""+param.value+"\"")
	#end
#end

 <select #(attributes)>
	<option value="">#(nullValueName!=null&&nullValueName!=''?nullValueName:'---请选择--')</option>
	 #for(dicInfo:DicCacheStatic.getDicInfos(dicTypeCode))
		<option value="#(dicInfo.code)" #(dicInfo.code==dicInfoValue?'selected':'')>#(dicInfo.name)</option>
	#end
 </select>
#end